package com.bwie.service;

import com.bwie.bean.Account;
import com.bwie.bean.Company;
import com.bwie.dao.AccountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    AccountDao accountDao;

    @Override
    public List<Account> list(Map map) {
        return accountDao.list(map);
    }

    @Override
    public int addAccount(Account account) {
        return accountDao.addAccount(account);
    }

    @Override
    public List<Company> listCompany() {
        return accountDao.listCompany();
    }
}
